<?php

class Xzsdsplus_Importplus_Model_Status extends Mage_Paypal_Model_Standard {
    
    public function getStatus() {
        return (bool)Mage::getStoreConfig('xzsdsplus/importplus/importpluson');
    }
    
    public function getQuickFinish() {
        return (bool)Mage::getStoreConfig('xzsdsplus/importplus/importplusquickfinish');
    }
    
    public function getDefaultQty() {
        $qty = (int)Mage::getStoreConfig('xzsdsplus/importplus/importplusdefaultqty');
        if ($qty <= 0) {
            $qty = 30;
        }
        return $qty;
    }
       
    public function getCategoryIds() {
        return Mage::getStoreConfig('xzsdsplus/importplus/importplusdefaultcatids');
    }
    
    public function getAttributeCode() {
        $code = Mage::getStoreConfig('xzsdsplus/importplus/importplusattributecode');
        if(empty($code)){
            $code = 'diamond_size';
        }
        return $code;
    }
    
    public function getRingSize() {
        $code = Mage::getStoreConfig('xzsdsplus/importplus/importplusringsize');
        if(empty($code)){
            $code = '4.5:fixed:0.0000::0|5:fixed:0.0000::1|5.5:fixed:0.0000::2|6:fixed:0.0000::3|6.5:fixed:0.0000::4|7:fixed:0.0000::5|7.5:fixed:0.0000::6|8:fixed:0.0000::0|8.5:fixed:0.0000::1|9:fixed:0.0000::2|9.5:fixed:0.0000::3|10:fixed:0.0000::4|10.5:fixed:0.0000::5|11:fixed:0.0000::6|11.5:fixed:0.0000::7|12:fixed:0.0000::8';
        }
        return $code;
    }
    
    public function getBraceletLength() {
        $code = Mage::getStoreConfig('xzsdsplus/importplus/importplusbraceletlength');
        if(empty($code)){
            $code = '5":percent:-28.0000::0|5.5":percent:-21.0000::0|5.75":percent:-17.0000::0|6":percent:-14.0000::0|6.25":percent:-10.0000::0|6.5":percent:-7.0000::0|6.75":percent:-3.0000::0|7.25":percent:4.0000::0|7.5":percent:8.0000::0|7.75":percent:15.0000::0|8":percent:15.0000::0|8.25":percent:18.0000::0|8.5":percent:22.0000::0|8.75":percent:-25.0000::0|9":percent:29.0000::0';
        }
        return $code;
    }
}
